<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%@ page import="domain.Address, domain.DAOContact, org.hibernate.SessionFactory, org.hibernate.Session, org.hibernate.cfg.Configuration"  %>
<%
Session hsession = null;
/*
try{
	Address addr = new Address();
	addr.setStreet("Jussieu");
	addr.setCity("Paris");
	addr.setZip("75000");
	addr.setCountry("France");
	SessionFactory sf = new Configuration().configure().buildSessionFactory();
	hsession = sf.openSession();
	
	org.hibernate.Transaction tx = hsession.beginTransaction();
	
	hsession.save(addr);
	
	addr.setStreet("foch");
	
	tx.commit();
}
catch(Exception e){
	System.out.println(e.getMessage());
}
finally{
	hsession.close();
}
*/
DAOContact.testContact();
%>
</body>
</html>